package com.mygame.center.handler;


import com.mygame.common.component.BaseRoute;
import com.mygame.common.component.RequestPacket;
import com.mygame.common.component.annotation.Handler;
import com.mygame.common.msg.CommandEnum;
import org.springframework.stereotype.Component;

@Component
//@Route(serviceType = "GATE_SERVER")
public class CommonHandler implements BaseRoute<RequestPacket> {

    @Override
    public void onReceive(RequestPacket packet) {
        System.out.println("CommonHandler");
    }


    //GATE_SERVER.CommonHandler.game.test
    @Handler(cmd = CommandEnum.C2S_TEST)
    public void test(RequestPacket packet) {
        System.out.println("CommonHandler");
    }
}